import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-15
 * Time: 23:27
 */
public class Demo4 {
    public static void main(String[] args) {
        File dir=new File("./testDir1/aaa/bbb/cc" );
             //dir.mkdir();//mkdir只能创建一级目录
        dir.mkdirs();//mkdirs可以创建多级目录
        System.out.println(dir.exists());
        System.out.println(dir.isFile());
        System.out.println(dir.isDirectory());
    }
}
